package com.isprint.jslx.jackson;

import com.jfinal.json.JacksonFactory;
import com.jfinal.json.Json;

/**
 * JackSon的包装类
 *
 * @author HYL
 * @create 2017-07-14 下午10:42
 **/
public class JackSonTool {
    private static JacksonFactory jacksonFactory=new JacksonFactory();
    private static Json json=jacksonFactory.getJson();
    public static  <T> T strin2obj(String objStr,Class<T> clazz){
        T parse = json.parse(objStr, clazz);
        return parse;
    }
}
